package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;

/**
 * Description:
 * @author 李杰
 * @date 2019/2/18 16:34
 * @version v1.0
 * @since v1.0
 */
public enum ProcessOpinionEnum {

    /**
     * 流程意见是否必填
     */
    DISABLE(0, "enum.processOpinion.memo.disable"),
    REQUIRED(1, "enum.processOpinion.memo.required"),
    OPTIONAL(2, "enum.processOpinion.memo.optional");

    private Integer value;

    private String memo;

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getMemo() {
        return I18nMessageUtil.getMessage(memo);
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    ProcessOpinionEnum(Integer value, String memo){
        this.value = value;
        this.memo = memo;
    }
}
